package cn.xo68.boot.auth.core.domain;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * oauth2 认证令牌
 * @author wuxie
 * @date 2018-8-5
 */
public class OAuth2AuthenticationToken implements AuthenticationToken {




    private Oauth2Principal principal;

    private String credential;



    @Override
    public Oauth2Principal getPrincipal() {
        return principal;
    }

    public void setPrincipal(Oauth2Principal principal) {
        this.principal = principal;
    }

    @Override
    public String getCredentials() {
        return credential;
    }

    public void setCredential(String credential) {
        this.credential = credential;
    }
}